package design.pattern.factory.abstractFactory.impl;

import design.pattern.factory.abstractFactory.BigIceCream;
import design.pattern.factory.abstractFactory.IceCreamFactory;
import design.pattern.factory.abstractFactory.SmallIceCream;
import design.pattern.factory.factory.IceCream;


/**
 * @program: design-pattern
 * @description:
 * @author: dong.chang
 * @create: 2021-04-22 13:12
 **/
public class AppleFactory extends IceCreamFactory {

    @Override
    public BigIceCream createBigCup() {
        return new BigAppleIceCream();
    }

    @Override
    public SmallIceCream createSmallCup() {
        return new SmallAppleIceCream();
    }
}
